package org.hdax.dm.service;

import org.hdax.dm.request.VoVcodeRequest;
import org.hdax.dm.vo.CommonResponse;
import org.hdax.dm.vo.entity.user.QueryUserInfoByToken;
import org.hdax.dm.vo.entity.user.VoTokens;

import java.util.List;

public interface UserService {

    CommonResponse<List<Object>> login(String phone, String password);

    CommonResponse getCode(String mobile);

    CommonResponse<VoTokens> codeLogin(VoVcodeRequest voVcodeRequest);

    CommonResponse enrollGetCode(String mobile);

    CommonResponse<VoTokens> enrollLogin(VoVcodeRequest voVcodeRequest);

    CommonResponse<QueryUserInfoByToken> queryUserInfoByToken();

    CommonResponse modifyUserInfo(QueryUserInfoByToken queryUserInfoByToken);
}
